﻿using GetHbaseDataTests.Helpers;
using Sustainalytics.ClientDW.Synchronization.SyncHbaseData;
using Sustainalytics.SharedEntities.Corporate;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;

namespace GetHbaseDataTests.CountryTests
{
    public class CountryOrchestratorTests : BaseSyncHbaseTests
    {
        private readonly CorporateDataSync _sut;

        public CountryOrchestratorTests(ITestOutputHelper output) : base(output)
        {
            _sut = SimpleInjectorContainer.GetInstance<CorporateDataSync>();
        }

        [Fact]
        public async Task Execute()
        {
            await _sut.RecreateCollection<Country>(cddb => cddb.ListCountries());
        }
    }
}
